package com.ruoyi.project.demo.log.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.demo.log.mapper.QuestionLogMapper;
import com.ruoyi.project.demo.log.domain.QuestionLog;
import com.ruoyi.project.demo.log.service.IQuestionLogService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 答卷管理Service业务层处理
 * 
 * @author demo
 * @date 2020-04-23
 */
@Service
public class QuestionLogServiceImpl implements IQuestionLogService 
{
    @Autowired
    private QuestionLogMapper questionLogMapper;

    /**
     * 查询答卷管理
     * 
     * @param id 答卷管理ID
     * @return 答卷管理
     */
    @Override
    public QuestionLog selectQuestionLogById(Long id)
    {
        return questionLogMapper.selectQuestionLogById(id);
    }

    /**
     * 查询答卷管理列表
     * 
     * @param questionLog 答卷管理
     * @return 答卷管理
     */
    @Override
    public List<QuestionLog> selectQuestionLogList(QuestionLog questionLog)
    {
        return questionLogMapper.selectQuestionLogList(questionLog);
    }

    /**
     * 新增答卷管理
     * 
     * @param questionLog 答卷管理
     * @return 结果
     */
    @Override
    public int insertQuestionLog(QuestionLog questionLog)
    {
        return questionLogMapper.insertQuestionLog(questionLog);
    }

    /**
     * 修改答卷管理
     * 
     * @param questionLog 答卷管理
     * @return 结果
     */
    @Override
    public int updateQuestionLog(QuestionLog questionLog)
    {
        return questionLogMapper.updateQuestionLog(questionLog);
    }

    /**
     * 删除答卷管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteQuestionLogByIds(String ids)
    {
        return questionLogMapper.deleteQuestionLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除答卷管理信息
     * 
     * @param id 答卷管理ID
     * @return 结果
     */
    @Override
    public int deleteQuestionLogById(Long id)
    {
        return questionLogMapper.deleteQuestionLogById(id);
    }
}
